home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7674 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: rowdy.lonestar.org!nemesis!hammy!not-for-mail
  2. From: gordon@sneaky.lerctr.org (Gordon Burditt)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: String manipulation routines for C
  5. Date: 27 Feb 1996 17:41:27 -0600
  6. Organization: What organization?
  7. Message-ID: <4h04r7$7e0@hammy.lonestar.org>
  8. References: <4gio78$ipr@bart.rogerswave.ca> <4gntb5$i41@nw002.infi.net>
  9. NNTP-Posting-Host: localhost.hammy.lonestar.org
  10.  
  11. >There are over 2 dozen standard, built-in functions for manipulating 
  12. >strings in 'C' - way more than Pascal ever offered. The functions are 
  13. >prototyped in an include file <string.h> and are explained in any 'C' 
  14. >book. Following is a partial list. 
  15.  
  16. Unfortunately, it got contaminated with non-standard functions.
  17.  
  18. >strcmp - compare 2 strings to see if there are the same (case sensitive)
  19. >stricmp - same as above, but case insensitive
  20.  
  21. stricmp() is NOT an ANSI C function.
  22.  
  23. >strrev - reverse a string
  24.  
  25. strrev() is NOT an ANSI C function.
  26.  
  27. >itoa - xlat an integer to a string (like BASIC's STR fn)
  28.  
  29. itoa() is NOT an ANSI C function.  (Use sprintf().)
  30.  
  31.                     Gordon L. Burditt
  32.                     sneaky.lerctr.org!gordon
  33.